package com.yykj.hospital.server.model.repository.form.template;

import com.yykj.hospital.server.model.entity.form.template.FormTrain;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FormTrainRepository extends JpaRepository<FormTrain,Integer>, JpaSpecificationExecutor<FormTrain> {
    FormTrain findFirstByTypeId(Integer id);
    List<FormTrain> findAllByIdIn(Iterable<Integer> ids);
}
